﻿#ifndef CONFIGPIN_H
#define CONFIGPIN_H

#include <QObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QMap>
/*
 * 配置实际引脚
*/
class ConfigPin : public QObject
{
    Q_OBJECT
public:
    explicit ConfigPin(QObject *parent = nullptr);
    virtual ~ConfigPin();

    void initPin();
    static ConfigPin * gestance();

    int getRealPin(int userPin );
    int getUserPin(int realPin );

signals:

private:
    static ConfigPin  * m_configPin;

    QMap<int ,int> m_pinMap;
    QMap<int ,int> m_pinRealMap;
};

#endif // CONFIGPIN_H
